package com.example.javalib.jihe;

import java.util.ArrayList;

public class Col {
    public static void main(String[] args) {

        ArrayList objects = new ArrayList();
        objects.add(10);
        objects.add("hello");
        objects.add('A');
        for (Object object : objects) {
            System.out.println(object);
        }

        ArrayList<String> list = new ArrayList();
        list.add("hello");
        list.add("world");
        for (String s : list) {
            System.out.println(s);
        }
    }

}
